StructuralConnectionHandler.Create
Description:
Creates a new instance of a Structural Connection Handler, which defines the connection between given elements. Elements should be of the following structural categories: framings, columns, walls, floors or foundations.
Creates a new instance of a Structural Connection Handler, which defines the connection between given elements. Elements should be of the following structural categories: framings, columns, walls, floors or foundations.
Overloads (3):
Create(Document,IList[ElementId],ElementId)
public static StructuralConnectionHandler Create(
Document document,
IList<ElementId> idsToConnect,
ElementId typeId
)
-
documentThe Revit document.
-
idsToConnectThe ElementIdArr containing element id of connected elements.
-
typeIdThe type of Structural Connection Handler.
Return Value
Returns created connection.
Returns created connection.
-
This ElementIdArr is invalid. It should contain ids of the following structural categories: framings, columns, walls, floors or foundations. -or- The type typeId is not a valid StructuralConnectionHandlerType. -or- Missing detailed structural connection service implementation.
-
A non-optional argument was NULL
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements).
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.